/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package base;

/**
 *
 * @author pbelov
 */
public class User {
    private String name;
    private String login;
    private String mail;
    private int privileges;
    private String teamLeader;

    private String teamName;

    private boolean isLeader;
    private User[] team; // is null if isLeader is false

    public static int counter = 0;

    // Creating simple test user
    public User(String name,
                   int privileges,
                String teamName,
                  User teamLeader,
               boolean isLeader) {
        this.name = name;
        this.privileges = privileges;
        this.teamName = teamName;
        this.isLeader = isLeader;
    }

    public User() {
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public void setPriv(int priv) {
        this.privileges = priv;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public void setTeamLeader(String teamLeader) {
        this.teamLeader = teamLeader;
    }

    public String getName() {
        return name;
    }

    public String getLogin() {
        return login;
    }

    public String getMail() {
        return mail;
    }

    public String getTeamName() {
        return teamName;
    }

    public String getTeamLeader() {
        return teamLeader;
    }

    public int getPrivileges() {
        return privileges;
    }

    private static void println(String str) {
        System.out.println(str);
    }
}
